package cn.huiyunche.base.service.interfaces;

import cn.huiyunche.base.service.model.CWaybillBid;

public interface WaybillBidService {

    /**
     * @param sorderId  服务订单id
     * @param waybillId 运单id
     * @param driverId  实际承运人（司机）id
     * @param b         是否接单成功
     * @return
     * @Title: addWayBillBid
     * @Description: 保存竞价记录
     * @return: Long
     */
    Long addWayBillBid(Long sorderId, Long waybillId, Long driverId, boolean b) throws Exception;

    /**
     * 根据订单ID查询 竞单记录
     *
     * @param orderId
     * @return
     */
    CWaybillBid selectByOrderid(long orderId);

    /**
     * 添加竞单记录
     *
     * @param bid
     * @return
     */
    Long insertCWaybillBid(CWaybillBid bid);
}
